<template>
  <div id="home-recommend">
    <div v-for="(item, index) in recommend" :key="index" class="img-msg">
      <a :href="item.link">
        <img :src="item.image" alt="">
      </a>
      <div>{{item.title}}</div>
    </div>
  </div>
</template>

<script>
  export default {
   name: "HomeRecommend",
   props:{
     recommend:{
       type:Array,
       default() {
         return [];
       }
     }
   }
  }
</script>

<style scoped>
  #home-recommend{
    display: flex;
    padding: 10px 0 20px;
    font-size: 12px;
    text-align: center;
    border-bottom: 8px solid #eee;
  }
  .img-msg{
    flex: 1;
  }
  .img-msg img{
    width: 100%;
    margin-bottom: 10px;
  }
</style>